package com.hc.sort.server.service;

import java.util.List;

import com.hc.sort.server.dao.*;
import com.hc.sort.server.pojo.*;

public class BusinessWindowServiceImpl implements BusinessWindowService {
	BusinessWindowDao windowDao=new BusinessWindowDaoImpl();

	@Override
	public int add(BusinessWindow bWindow) {
		return windowDao.add(bWindow);
	}

	@Override
	public int delete(int id) {
		return windowDao.delete(id);
	}

	@Override
	public int update(BusinessWindow bWindow) {
		return windowDao.update(bWindow);
	}

	@Override
	public BusinessWindow get(int id) {
		return windowDao.get(id);
	}

	@Override
	public List<BusinessWindow> findAll() {
		return windowDao.findAll();
	}

	@Override
	public List<BusinessWindow> searchByKeyword(String keyWord) {
		return windowDao.searchByKeyword(keyWord);
	}

}
